
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>主页</title>
    <link type="text/css" rel="stylesheet" href="./首页/css/main.css" />
    <link type="text/css" rel="stylesheet" href="./首页/css/top.css">
    <link type="text/css" rel="stylesheet" href="./首页/css/left.css">
</head>
<body>
<div id="cont">
    <div id="banner">
        <ul>
            <li id="banner_a" style="font-size: 60px;padding-top: 100px;">非常日记</li>
            <li id="banner_b" style="padding-left: 170px;">一个有灵魂的博客</li>
        </ul>
    </div>
    <div id="top">
        <ul>
            <li><a id="top_a" href="http://localhost:8900/index.php?s=admin/ago/ago_list">首页</a></li>
            <?php foreach($categoryList as $row) : ?>

                <li><a href="http://localhost:8900/index.php?s=admin/ago/ago_list/category_id/<?php echo $row['category_id']?>"><?php echo $row['category_name'] ?></a></li>
            <?php endforeach; ?>

        </ul>
    </div>
    <div id="left">
        <?php foreach($result as $item) : ?>
            <ul>
<!--                文章标题-->
                <li  id="left_a"><span style="font-size: 30px;"><?php echo $item['category_name']?></span> <?php echo date('Y-m-d H:i:s',$item['add_time']) ?></li>
<!--                //文章内容-->
                <li><?php echo $item['category_desc'] ?></li>
                <li><a href="http://localhost:8900/index.php?s=admin/ago/article_list/category_id/<?php echo $item['category_id']?>"><input type="button" value="阅读全文	" name="btnsubmit" class="butstyle"></a></li>
            </ul>
        <?php endforeach ; ?>
        <div id="fo">
            <span id="fo_a" >copyright @ 2021 非常日记</span>
        </div>
    </div>

</div>
</body>
</html>
